var arr =[100,200,3,55,54,5,65,41,54];
var min =arr[2];
var max =arr[2];
for(var i=0;i<arr.length;i++){
	if(min<arr[i]){
		min=min;
	}else{
		min=arr[i]
	}
}
for(var i=0;i<arr.length;i++){
	if(max<arr[i]){
	max=arr[i];
	}else{
		max=max;
	}
}
console.log("最小的数为"+min);
console.log("最大的数为"+max);